package com.kun.oa.service;

import com.github.pagehelper.PageInfo;
import com.kun.oa.entity.Permission;

import java.util.List;

/**
 * @author fangkun
 * @create 2023-04-27-11:02
 */
public interface IPermissionService {
    PageInfo<Permission> findByPage(int pageNum, int pageSize);

    Permission findById(int id);

    void update(Permission permission);

    void add(Permission permission);

    List<Permission> findAll();

    boolean deletePermissionById(int id);
}
